<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
    <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
</head>
<body>
<div>
<ol>
    <li style="float:left;margin-left: 50px">iPhone</li>
    <li style="float:left;margin-left: 50px">iPod</li>
    <li style="float:left;margin-left: 50px">iPad</li>
</ol>
</div>
<script>
    window.onload = function () {
        var num = Math.floor(Math.random()*10);
        console.info(num)
        console.info(typeof num)
    }

</script>
</body>
</html>